<!DOCTYPE html>
<html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../../js/vue/vue.js"></script>
</head>
<body>

<!-- 页面模板 -->
<div id="app">
    <span v-if="age > 18">欢迎光临</span>
    <span v-else-if="age < 18">18禁</span>
    <span v-else>家长陪同</span>
</div>
<script>
    var app = new Vue({
        el:'#app',
        data:{
            age: 19
        }
    })
</script>
</body>
</html>